# 列表生成式
l = [i for i in range(10)]
print(l)
t = (i for i in range(10))
print(t) # 生成器对象
print(tuple(t))
d = {i:i**2 for i in range(10)}
print(d)
s = {i**2 for i in range(10)}
print(s)